package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {


    User getUserByOpenId(String openid);

    void addUser(User newUser);

    @Select("select * from user where id = #{Id}")
    User getById(Long Id);
}
